// 导入请求模块
import servers from '@/utils/servers'

// 获取搜索建议
export const searchData = q => {
  return servers({
    url: `/v1_0/suggestion?q=${q}`
  })
}
// 获取搜索结果
export const searchResultData = params => {
  return servers({
    url: '/v1_0/search',
    params
  })
}
